package date0702;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLException;

public interface StudentDao {
	/**
	 * 保存单个 Student 对象
	 * @param s 被保存的对象
	 * @return 当保存成功时返回 true 
	 * @throws IOException 
	 * @throws SQLException 
	 * @throws ClassNotFoundException 
	 */
	boolean save( Student s ) throws IOException, SQLException, ClassNotFoundException;
	
	/**
	 * 根据 id 返回一个 Student 对象
	 * @param id 被查询的学生编号( id )
	 * @return 返回指定 id 对应的 Student 对象
	 * @throws FileNotFoundException 
	 * @throws IOException 
	 * @throws ClassNotFoundException 
	 * @throws SQLException 
	 */
	Student find( Integer id ) throws FileNotFoundException, IOException, ClassNotFoundException, SQLException ;

}
